/**
 * @Author: 曹钰林
 * @Date: 2019/8/29
 * @Last Modified by:   曹钰林
 * @Last Modified time: 2019-08-29
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
import * as types from './types';

// 查询
export const searchBillTools = params => axios.post(`${SERVER.TOOLMANAGEMENT}/sptFirmStock/search`, params, { mark: types.SEARCH });

// 查询盘点单号
export const searchBill = params => axios.post(`${SERVER.TOOLMANAGEMENT}/sptFirmStock/searchBill`, params, { mark: types.SEARCH });

// 自动登录
export const autoLogin = params => axios.post(`${SERVER.TOOLMANAGEMENT}/sptFirmStock/autoLogin`, params);

// 保存
export const updateInfo = params => axios.post(`${SERVER.TOOLMANAGEMENT}/sptFirmStock/updateInfo`, params);

// 补打清单
export const repairBill = params => axios.post(`${SERVER.TOOLMANAGEMENT}/sptFirmStock/repairBill`, params);

// 提交批复
export const commitBill = params => axios.post(`${SERVER.TOOLMANAGEMENT}/sptFirmStock/commitBill`, params);
